home *** CD-ROM | disk | FTP | other *** search
/ PC Professionell 2006 June / PCpro_2006_06.ISO / files / freeware / openvip.exe / {app} / sdk / include / openvip / ConnectorDesc.h < prev    next >
Encoding:
C/C++ Source or Header  |  2004-02-01  |  1.4 KB  |  61 lines

  1. /*
  2.  * Generated by upf-idl C++ backend (upf ABI version: 2)
  3.  * Do not edit by hand!
  4.  */
  5.  
  6. #ifndef _UPF_IDL_OPENVIP_CONNECTORDESC_IDL_H_
  7. #define _UPF_IDL_OPENVIP_CONNECTORDESC_IDL_H_
  8.  
  9. #include <upf/cxx.h>
  10.  
  11. #if UPF_ABI_VERSION != 2
  12. #error "Headers generated for upf ABI different from the one you have installed, please regenerate them."
  13. #endif
  14.  
  15.  
  16. #include <upf/coretypes.h>
  17. #include <upf/IObject.h>
  18. #include <openvip/Address.h>
  19. #include <openvip/IStreamInfo.h>
  20. namespace openvip 
  21. {
  22.     struct ConnectorDesc
  23.     {
  24.         ConnectorDesc() {}
  25.     
  26.         ConnectorDesc(const StreamType& _type, const ::std::string& _name, bool _required)
  27.             : type(_type), name(_name), required(_required) {}
  28.         
  29.         StreamType type;
  30.         ::std::string name;
  31.         bool required;
  32.     };
  33. }
  34. namespace openvip 
  35. {
  36.     typedef ::std::vector< ConnectorDesc > ConnectorDescList;
  37. }
  38. #include <upf/cxx_ptr.h>
  39. namespace upf {
  40.  
  41. inline Arguments& operator<<(Arguments& holder, const ::openvip::ConnectorDesc& value)
  42. {
  43.     holder << value.type;
  44.     holder << value.name;
  45.     holder << value.required;
  46.     return holder;
  47. }
  48.  
  49. inline Arguments& operator>>(Arguments& holder, ::openvip::ConnectorDesc& value)
  50. {
  51.     holder >> value.type;
  52.     holder >> value.name;
  53.     holder >> value.required;
  54.     return holder;
  55. }
  56.  
  57. } // namespace upf
  58.  
  59.  
  60. #endif
  61.